package cn.jhz.learn.blog.dao.account;

import cn.jhz.learn.blog.po.account.AccountRolePermission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AccountRolePermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AccountRolePermission record);

    int insertSelective(AccountRolePermission record);

    AccountRolePermission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AccountRolePermission record);

    int updateByPrimaryKey(AccountRolePermission record);

    /*自定义*/
    List<Integer> selectPermissionIdsByRoleIds(@Param("role_ids")List<Integer> roleIds);
}